package com.hs.biye.service;

import com.hs.biye.model.DTO.RegnusRequest;
import com.hs.biye.model.VO.PatientVo;
import com.hs.biye.model.VO.RegnusVo;
import com.hs.biye.model.entity.Regnus;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hs.biye.model.reslut.ResultPage;

import java.time.LocalDate;
import java.util.List;

/**
* @author haoshuai
* @description 针对表【regnus】的数据库操作Service
* @createDate 2024-02-21 20:12:56
*/
public interface RegnusService extends IService<Regnus> {


    // 查询挂号
    ResultPage<RegnusVo> getPageRegnus(RegnusRequest regnusRequest);

    Boolean addReRegnus(RegnusRequest regnusRequest);

    Boolean updateReRegnus(RegnusRequest regnusRequest);
    Boolean deleteReRegnus(RegnusRequest regnusRequest);


    RegnusVo getRegnusByid(Integer id);

    //查询有有挂号数的医生
    List<RegnusVo> regdoctors(Integer id, String date);


    /**
     *
     * @param id 挂号数id
     * @param sign  0上午， 1下午标识
     * @param patientId 患者id
     * @return
     */
    Boolean guahao(Integer id,Integer sign,Integer patientId);

}
